﻿
namespace Ndex.Core.Service
{
    public class ServiceSearchRequest : ServiceRequest, IPagination
    {
        public ServiceSearchRequest()
        {
            //IOrderModel
            OrderBy = string.Empty;
            OrderAscending = true;

            //IPagingModel
            HasPaging = false;
            PageSize = 10;
            Current = 0;
            NoPages = 1;
        }

        //IOrderModel
        public string OrderBy {get;set;}
        public bool OrderAscending { get; set; }
        public int OrderNumber { get; set; }
        //IPagingModel
        public bool HasPaging { get; set; }
        public int PageSize { get; set; }
        public int Current { get; set; }
        public int NoPages { get; set; }
        public int NoItems { get; set; }
        public bool TakeAll { get; set; }
    }
}
